﻿<%@ Page Language="C#" AutoEventWireup="true" CodeFile="PrintProduct.aspx.cs" Inherits="PrintProduct" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<%@ Register Src="controls/ctrlShowAvailableCount.ascx" TagName="ctrlShowAvailableCount"
    TagPrefix="uc1" %>
<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
    <title></title>
    <link href="css/default.css" rel="stylesheet" type="text/css" />
</head>
<body onload="window.print(); window.close();" style="background: #fff">
    <form id="form1" runat="server">
    <div id="product-detail" style="background: #fff">
        <div id="product-name">
            <h2 style="background: #fff; color: Black;">
                <%= product.Name %>
            </h2>
        </div>
        <div class="detail" style="background: #fff">
            <div>
                <asp:Image ID="imgProduct" runat="server" Style="max-height: 400px; max-width: 400px;" />
            </div>
            <div id="product-price">
                <span>
                    <%=Resources.Language.Price %>:
                    <%= (product.PriceBrutto).ToString("F")%>
                    <%=Resources.Language.Currency %>
                    (<%=product.PriceNetto.ToString("F")%>
                    <%= Resources.Language.CurrencyWithoutVAT %>) </span>
                <br />
                <uc1:ctrlShowAvailableCount ID="CtrlShowAvailableCount" runat="server" />
            </div>
            <h1>
                <%=Resources.Language.Description %>:</h1>
            <div id="product-description" class="description" style="background: #fff">
                <%= product.Description.Replace("\r\n","<br />") %>
            </div>
            <h1>
                <%=Resources.Language.Details %>:</h1>
            <div>
                <table>
                    <tbody>
                        <tr>
                            <td class="left">
                                <%=Resources.Language.Producer %>:
                            </td>
                            <td class="right">
                                <%=product.Producer.Name%>
                            </td>
                        </tr>
                        <asp:Repeater ID="rptProperty" runat="server">
                            <ItemTemplate>
                                <tr>
                                    <td class="left">
                                        <%#Eval("Name") %>:
                                    </td>
                                    <td class="right">
                                        <%#Eval("Value") %>
                                    </td>
                                </tr>
                            </ItemTemplate>
                        </asp:Repeater>
                    </tbody>
                </table>
            </div>
        </div>
    </div>
    </form>
</body>
</html>
